package com.baizhi.service.Impl;

import com.baizhi.dao.FileDao;
import com.baizhi.FileImg;
import com.baizhi.service.ImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FileServiceImpl implements ImgService {
    @Autowired
    private FileDao fileDao;
    @Override
    public void insert(FileImg file) {
        fileDao.insert(file);
    }

    @Override
    public List<FileImg> selectAll() {
        List<FileImg> fileImgs = fileDao.selectList(null);
        return fileImgs;
    }

}
